package com.example.graduationdesignbackend.service;

import com.example.graduationdesignbackend.dto.PageDto;
import com.example.graduationdesignbackend.entity.News;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.graduationdesignbackend.query.NewsQuery;
import com.example.graduationdesignbackend.res.Res;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yuze
 * @since 2024-04-03
 */
public interface INewsService extends IService<News> {

  void createNews(News news);
  Res editNews(News news);
  PageDto<News> getNewsPages(NewsQuery newsQuery);
}
